import Vue from 'vue'
import App from './App'
import { getApi, postApi, getOppenId } from './common/js/request.js'
import pub from './common/js/pub.js'
import path from './common/js/config.js'
// import cuCustom from './components/colorui/components/cu-custom.vue'
// Vue.component('cu-custom', cuCustom)

Vue.prototype.$getApi = getApi
Vue.prototype.$postApi = postApi
Vue.prototype.$getOppenId = getOppenId
Vue.prototype.pub = pub
Vue.prototype.$path = path

//一部手机游甘肃小程序appid secret
Vue.prototype.wx_appid = 'wx21fe321ff1e3e2e0'
Vue.prototype.wx_secret = '399a00cb038da7f934128c1af9489cb8'

Vue.config.productionTip = false

App.mpType = 'app'


var debug = true// false为生产包,true为测试包
// 生产包不显示日志
if (debug === false) {
  console.trace = function() {
  }
  console.log = function() {
  }
  console.info = function() {
  }
  console.warn = function() {
  }
  console.error = function() {
  }
}
const app = new Vue({
    ...App
})
app.$mount()
